import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15

Window {
    id: window
    width: 640
    height: 480
    visible: true
    title: qsTr("Sign Slot")


    signal testSignal(string msg, int num)

    Button {
        width: 100
        height: 50
        onClicked: {
            testSignal("num", 123)
        }
    }

    Connections {
        target: window
        function onTestSignal(str,iValue) { 
            console.log("接收到信号：",str, iValue)
            
        }
    }
}
